package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class MultiplyArrayByConst {
	public static double[] multiplyArrayByConst(double[] array,
	                                            double constant) {
		double[] arr_copy = array.clone();

		for (int i = 0; i < array.length; i++) {
			arr_copy[i] = arr_copy[i] * constant;
		}
		return arr_copy;
	}
}
